<template>
  <wux-result
    :icon="icon"
    :title="title"
    :buttons="buttons"
    extra="Copyright © 卡卡伴旅"
    fixed
    @click="onClick"
  />
</template>
<script>
export default {
  data() {
    return {
      title: "",
      buttons: [{
        type: 'stable',
        block: true,
        text: '返回订单列表'
      }],
      icon: {
        type: "success"
      }
    }
  },
  mounted() {
    this.title = this.$store.state.result.title;
    this.$set(this.icon, "type", this.$store.state.result.type);
  },
  methods: {
    onClick() {
      wx.redirectTo({
        url: '/pages/myLeaseList'
      })
    }
  }
}
</script>